package top.tagao.m02_creationalPatterns.c_05_AbstructFactory;

import top.tagao.m02_creationalPatterns.c_05_AbstructFactory.app.Application;
import top.tagao.m02_creationalPatterns.c_05_AbstructFactory.factories.GUIAbstractFactory;
import top.tagao.m02_creationalPatterns.c_05_AbstructFactory.factories.WindowsFactory;

/**
 * @author fu-xiao-liu
 * @Date 2022/7/25 22:26
 */
public class Main {
    public static void main(String[] args) {
        //1.创建工厂
        GUIAbstractFactory windowsFactory = new WindowsFactory();

        //2.创建客户端
        Application application = new Application(windowsFactory);
        application.paint();
    }
}
